/* GUI CONVERTED from rspostat.p (converter v1.76) Wed Dec 12 05:26:47 2001 */
/* rspostat.p - REOPEN PURCHASE ORDER / ORDER LINE                            */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                        */
/* All rights reserved worldwide.  This is an unpublished work.               */
/* $Revision: 1.3 $                                                           */
/*V8:ConvertMode=Maintenance                                                  */
/* REVISION: 8.6E      CREATED: 09/27/99       BY: *L0JD* Reetu Kapoor        */
/* REVISION: 9.1      MODIFIED: 08/12/00       BY: *N0KP* Mark Brown          */
/* $Revision: 1.3 $    BY: Jean Miller           DATE: 12/10/01  ECO: *P03H*  */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

define input parameter l_ponbr like po_nbr   no-undo.
define input parameter l_poln  like pod_line no-undo.

find po_mstr where po_nbr = l_ponbr exclusive-lock.

if available po_mstr then do:

   find pod_det where pod_nbr  = po_nbr and
                      pod_line = l_poln
   exclusive-lock.

   if available pod_det then do:
      assign
         po_cls_date = ?
         po_stat     = ""
         pod_status  = "".
   end.

end.
